package com.remotecontrol.commands;

import com.remotecontrol.receiver.Stereo;

public class StereoOffWithCDCommand implements Command {
	private Stereo stereo;
	public StereoOffWithCDCommand(Stereo stereo) {
		this.stereo = stereo;
	}
	@Override
	public void execute() {
		stereo.off();
		stereo.unSetCD();
		
	}
	@Override
	public void undo() {
		stereo.on();
		stereo.setCD();
	}

}
